import 'dart:html';
// import 'dart:js' as js;

Future loadDeviceInfo() async {
  final userAgent = window.navigator.userAgent;
  return {
    'userAgent': userAgent,
    'deviceName': 'unknown',
    'isIOS': RegExp(r'\(i[^;]+;( U;)? CPU.+Mac OS X').hasMatch(userAgent),
    'isAndroid': userAgent.contains('Android'),
  };
}
